package StudyCode.summary.zipfile;

import java.io.*;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ConvertInputStreamToString {
	public static void main(String args[]) throws IOException {
		InputStream is = new FileInputStream("E:/Copy/1.txt");
		String strContent;

		BufferedReader bReader = new BufferedReader(new InputStreamReader(is));
		StringBuffer sbfFileContents = new StringBuffer();
		String line = null;

		while ((line = bReader.readLine()) != null) {
			sbfFileContents.append(line);
		}

		strContent = sbfFileContents.toString();
		System.out.println(line);
	}
}
